package net.metashare.grah.logic

/**
 * Grah is a notion produced by metashare.net
 * User: dsherema
 * Date: May 1, 2010
 * Time: 4:43:41 PM
 *
 */

class Or implements Predicate {

  Predicate pred1, pred2;

  def Either(Predicate p1, Predicate p2) {
    pred1 = p1
    pred2 = p2
  }



  def boolean apply(Object object) {
    return pred1.apply(object) || pred2.apply(object)
  }
}